package com.repair.miniApp.service.impl;

import com.repair.miniApp.domain.DictData;
import com.repair.miniApp.mapper.DictDataMapper;
import com.repair.miniApp.service.DictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DictDataServiceImpl implements DictDataService {

    @Autowired
    private DictDataMapper dictDataMapper;

    @Override
    public List<DictData> getBuildingNumberData() {
        List<DictData> data = dictDataMapper.selectBuildingNumberData();
        System.out.println("Building number data: " + data);
        return data;
    }

    @Override
    public List<DictData> getRepairTypeData() {
        List<DictData> data = dictDataMapper.selectRepairTypeData();
        System.out.println("Repair type data: " + data);
        return data;
    }
}
